Overriding vs Overloading

  • Note

    Overriding invloves the creations of two or more methods with same name and same signature in different classes ( one of them should be parent class and other should be child)

    Same function name and same signature in parent and child classes

    Overloading is a concept of using a method at different places with same name and different signature with in same class.

    Same function name and different signature in same class